import CountUI from "../../components/CountUI"
import {connect} from "react-redux"
import {increment_action,incrementAsync_action} from "../../redux/count_reducer_action"

const mapStateToProps = (state) => ({count: state}) 

const mapDispatchToProps = (dispatch) => ({
  incrementAc: (data) =>dispatch(increment_action(data)),
  incrementAsync: (data,time) => dispatch(incrementAsync_action(data,time))
})

export default connect(mapStateToProps,mapDispatchToProps)(CountUI)